home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / mount.z / mount
Text File  |  1998-10-20  |  6KB  |  199 lines

  1.  
  2.  
  3.  
  4. MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))                                                            MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mount, sgi_mount - keep track of remotely mounted filesystems
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<rrrrppppccccssssvvvvcccc////mmmmoooouuuunnnntttt....hhhh>>>>
  13.  
  14. RRRRPPPPCCCC IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  15.    PPPPrrrrooooggggrrrraaaammmm nnnnuuuummmmbbbbeeeerrrr::::
  16.      MOUNTPROG, MOUNTPROG_SGI
  17.  
  18.    XXXXDDDDRRRR rrrroooouuuuttttiiiinnnneeeessss::::
  19.           bool_t    xdr_exportbody(XDR *, struct exports *)
  20.           bool_t    xdr_exports(XDR *, struct exports **);
  21.           bool_t    xdr_fhandle(XDR *, fhandle_t *);
  22.           bool_t    xdr_fhstatus(XDR *, struct fhstatus *);
  23.           bool_t    xdr_groups(XDR *, struct groups *);
  24.           bool_t    xdr_mountbody(XDR *, mountlist *);
  25.           bool_t    xdr_mountlist(XDR *, mountlist **);
  26.           bool_t    xdr_path(XDR *, char **);
  27.           /* sgi_mount only */
  28.           bool_t    xdr_exportlist(XDR *, struct exportlist **);
  29.           bool_t    xdr_exportentry(XDR *, struct exportentry **);
  30.           bool_t    xdr_statvfs(XDR *, struct mntrpc_statvfs *);
  31.  
  32.  
  33.    PPPPrrrroooocccceeeedddduuuurrrreeeessss::::
  34.      MOUNTPROC_MNT
  35.           Argument of xdr_path, returns fhstatus.
  36.           Requires UNIX authentication.
  37.  
  38.      MOUNTPROC_DUMP
  39.           No arguments, returns struct mountlist.
  40.  
  41.      MOUNTPROC_UMNT
  42.           Argument of xdr_path, no results.
  43.           Requires UNIX authentication.
  44.  
  45.      MOUNTPROC_UMNTALL
  46.           No arguments, no results.
  47.           Requires UNIX authentication.
  48.           Unmounts all remote mounts of sender.
  49.  
  50.      MOUNTPROC_EXPORT
  51.  
  52.      MOUNTPROC_EXPORTALL
  53.           No arguments, returns struct exports.
  54.  
  55.      MOUNTPROC_EXPORTLIST     (sgi_mount only)
  56.           No arguments, returns struct exportlist.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))                                                            MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))
  71.  
  72.  
  73.  
  74.      MOUNTPROC_STATVFS   (sgi_mount only)
  75.           Argument of xdr_path, returns mntrpc_statvfs.
  76.  
  77.    VVVVeeeerrrrssssiiiioooonnnnssss::::
  78.      MOUNTVERS_ORIG
  79.           Universal program version.
  80.  
  81.      MOUNTVERS_SGI_ORIG
  82.           SGI enhanced version for complete exports inquiry and statvfs.
  83.  
  84.    SSSSttttrrrruuuuccccttttuuuurrrreeeessss::::
  85.           struct mountlist {       /* what is mounted */
  86.                char *ml_name;
  87.                char *ml_path;
  88.                struct mountlist *ml_nxt;
  89.           };
  90.           struct fhstatus {
  91.                int fhs_status;
  92.                fhandle_t fhs_fh;
  93.           };
  94.           /*
  95.            * List of exported directories.
  96.            * An export entry with ex_groups NULL indicates an entry
  97.            * which is exported to the world.
  98.            */
  99.           struct exports {
  100.                dev_t          ex_dev;        /* dev of directory */
  101.                char      *ex_name; /* name of directory */
  102.                struct groups  *ex_groups;    /* groups given access */
  103.                struct exports *ex_next;
  104.           };
  105.           struct groups {
  106.                char      *g_name;
  107.                struct groups  *g_next;
  108.           };
  109.           /* sgi_mount only */
  110.           struct exportlist {
  111.                struct exportentry {
  112.                     char      *ee_dirname;
  113.                     char      *ee_options;
  114.                } el_entry;
  115.                struct exportlist   *el_next;
  116.           };
  117.           struct mntrpc_statvfs {
  118.                u_long  f_bsize;        /* fundamental file system block size */
  119.                u_long  f_frsize;       /* fragment size */
  120.                u_long  f_blocks;       /* total # of blocks of f_frsize on fs */
  121.                u_long  f_bfree;        /* total # of free blocks of f_frsize */
  122.                u_long  f_bavail;       /* # of free blocks avail to non-superuser */
  123.                u_long  f_files;        /* total # of file nodes (inodes) */
  124.                u_long  f_ffree;        /* total # of free file nodes */
  125.                u_long  f_favail;       /* # of free nodes avail to non-superuser */
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))                                                            MMMMOOOOUUUUNNNNTTTT((((3333RRRR))))
  137.  
  138.  
  139.  
  140.               u_long  f_fsid;         /* file system id (dev for now) */
  141.                char    f_basetype[16]; /* target fs type name, null-terminated */
  142.                u_long  f_flag;         /* bit-mask of flags */
  143.                u_long  f_namemax;      /* maximum file name length */
  144.                char    f_fstr[32];     /* filesystem-specific string */
  145.           };
  146.  
  147.  
  148. NNNNOOOOTTTTEEEE
  149.      To compile and link a program that calls these routines, follow the
  150.      procedures for section (3R) routines as described in intro (3).
  151.  
  152. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  153.      exportfs(1M), mount(1M), showmount(1M), mountd(1M), exports(4).
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.